package com.ruoyi.system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

/**
 * 车辆与设备的绑定关系对象 t_vehicle_equipment
 * 
 * @author wp
 * @date 2023-08-10
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
@Accessors(chain = true)
@ToString
@TableName(value = "t_vehicle_equipment", excludeProperty = {"createBy","updateTime","updateBy", "remark"})
public class VehicleEquipment extends BaseEntity {
    /** id */
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    /** 车辆id */
    @ApiModelProperty("车辆id")
    private Long vehicleId;

    /** 设备管理id */
    @ApiModelProperty("设备管理id")
    private Long equipmentId;

    public VehicleEquipment(Long vehicleId, Long equipmentId){
        this.vehicleId = vehicleId;
        this.equipmentId = equipmentId;
    }

}
